Skip to content

Conversation

@Hinton
Copy link
Member

@Hinton Hinton commented May 26, 2025

🎟️ Tracking

📔 Objective

Follow up PR to bitwarden/sdk-internal#225 which adds converters between strings and SDK UUIDs.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@Hinton Hinton requested a review from a team as a code owner May 26, 2025 09:30
@Hinton Hinton requested a review from coroiu May 26, 2025 09:30
@codecov
Copy link

codecov bot commented May 26, 2025

Codecov Report

Attention: Patch coverage is 44.44444% with 5 lines in your changes missing coverage. Please review.

Project coverage is 36.48%. Comparing base (56b565a) to head (b968de5).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ommon/src/platform/abstractions/sdk/sdk.service.ts 44.44% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14939   +/-   ##
=======================================
  Coverage   36.48%   36.48%           
=======================================
  Files        3208     3208           
  Lines       93256    93260    +4     
  Branches    16835    16836    +1     
=======================================
+ Hits        34020    34024    +4     
  Misses      56763    56763           
  Partials     2473     2473           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2025

Logo
Checkmarx One – Scan Summary & Details254e8e7d-d644-44fb-bb21-162118d5a80c

Great job, no security vulnerabilities found in this Pull Request


// Converts a UUID to the string representation.
export function uuid_to_string<T extends Uuid>(uuid: T): string {
return uuid as unknown as string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should we do a sanity check here just to double check that the value is a string/defined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could but they need to use something that is tagged as uuid, feels pretty hard to accidentally insert something unexpected here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe if it comes across a network or from a deserialization process?

@Hinton Hinton requested a review from coroiu May 26, 2025 13:29
@sonarqubecloud
Copy link

@Hinton Hinton merged commit beb00a2 into main May 26, 2025
98 checks passed
@Hinton Hinton deleted the arch/sdk-uuid branch May 26, 2025 15:02
dan-livefront pushed a commit that referenced this pull request Jun 2, 2025
* Add UUID helpers to the SDK

* Address review feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants